/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package negocio;

/**
 *
 * @author JOAQUIN
 */
public class Auto {

        private String marca;
	private String modelo;
	private int año;
	private float precio;
	private String color;

	public Auto(){

	this.marca = new String();
	this.modelo = new String();
	this.año = 0;
	this.precio = 0;
	this.color = new String();
	}

	public Auto(String mar, String mod, int a, float pre, String col){
		this.marca = mar;
		this.modelo = mod;
		this.año = a;
		this.precio = pre;
		this.color = col;
	}

	public String getColor(){
		return this.color;
	}
	public String getMarca(){
		return this.marca;
	}

	public void setColor(String col){
		this.color=col;
	}

	public String toString(){
            String separador = "<hr />";
		return ("<br /> Marca: "+this.marca+"<br /> Modelo: " + this.modelo+ "<br /> Año: " + this.año + "<br /> Precio: " +this.precio+ "<br /> Color: "+this.color+"<br />"+separador);
	}
    
}
